package com.leetroll;

import com.ribbon.RibbonConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.netflix.ribbon.RibbonClients;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableTransactionManagement
@SpringBootApplication()
//@SpringBootApplication(exclude = {SecurityAutoConfiguration.class})
//ribbon负载均衡的服务
@RibbonClients(@RibbonClient(name = "leetroll-picture",configuration = RibbonConfig.class))
@EnableFeignClients("com.leetroll.common.feign")
public class LeetrollAdminApplication {

    public static void main(String[] args) {
        SpringApplication.run(LeetrollAdminApplication.class,args);
    }

}
